package com.yxinsur.imc.business.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxinsur.imc.business.domain.ImcSupplierPersistencyDetail;
import com.yxinsur.imc.business.vo.SupplierPersistencyDetailVo;
import org.apache.ibatis.annotations.Param;

/**
 * 供应商继续率子Mapper接口
 *
 * @author imc
 * @date 2021-09-23
 */
public interface ImcSupplierPersistencyDetailMapper extends BaseMapper<ImcSupplierPersistencyDetail> {
    /**
     * 查询供应商继续率子
     *
     * @param id 供应商继续率子ID
     * @return 供应商继续率子
     */
    public ImcSupplierPersistencyDetail selectImcSupplierPersistencyDetailById(String id);

    /**
     * 查询供应商继续率子列表
     *
     * @param imcSupplierPersistencyDetail 供应商继续率子
     * @return 供应商继续率子集合
     */
    public List<ImcSupplierPersistencyDetail> selectImcSupplierPersistencyDetailList(ImcSupplierPersistencyDetail imcSupplierPersistencyDetail);

    /**
     * 新增供应商继续率子
     *
     * @param imcSupplierPersistencyDetail 供应商继续率子
     * @return 结果
     */
    public int insertImcSupplierPersistencyDetail(ImcSupplierPersistencyDetail imcSupplierPersistencyDetail);

    /**
     * 修改供应商继续率子
     *
     * @param imcSupplierPersistencyDetail 供应商继续率子
     * @return 结果
     */
    public int updateImcSupplierPersistencyDetail(ImcSupplierPersistencyDetail imcSupplierPersistencyDetail);

    /**
     * 删除供应商继续率子
     *
     * @param id 供应商继续率子ID
     * @return 结果
     */
    public int deleteImcSupplierPersistencyDetailById(String id);

    /**
     * 批量删除供应商继续率子
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteImcSupplierPersistencyDetailByIds(String[] ids);

    List<SupplierPersistencyDetailVo> selectSupplierPersistencyDetailVoList(@Param("supplierPersistencyId") Long supplierPersistencyId, @Param("tenantId") Long tenantId);
}
